package com.music.entity;

import java.util.Date;

/**
 * 订单类
 * 
 * @author Administrator
 *
 */
public class Order {

	/**
	 * 订单id
	 */
	private int id;

	/**
	 * 下单时间
	 */
	private Date orderDate;

	/**
	 * 订单用户
	 */
	private User user;

	/**
	 * 收件人
	 */
	private String consignee;
	/**
	 * 收件地址
	 */
	private String address;
	/**
	 * 联系电话
	 */
	private String phone;
	/**
	 * 邮箱
	 */
	private String email;
	
	/**
	 * 总价
	 */
	private double totalPrice;
	
	/**
	 * 订单状态
	 */
	private int deliveried;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getConsignee() {
		return consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public int getDeliveried() {
		return deliveried;
	}

	public void setDeliveried(int deliveried) {
		this.deliveried = deliveried;
	}

	public Order(int id, Date orderDate, User user, String consignee,
			String address, String phone, String email, double totalPrice,
			int deliveried) {
		super();
		this.id = id;
		this.orderDate = orderDate;
		this.user = user;
		this.consignee = consignee;
		this.address = address;
		this.phone = phone;
		this.email = email;
		this.totalPrice = totalPrice;
		this.deliveried = deliveried;
	}

	public Order() {
		super();
	}

}